//
//  GGAlertView.h
//  TTInternbird
//
//  Created by iOSer on 16/6/6.
//  Copyright © 2016年 耿文康. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol GGAlertViewDelegate <NSObject>
-(void)alertViewBtnClick:(NSString *)text;
@end


@interface GGAlertView : UIView
@property(nonatomic,assign) id <GGAlertViewDelegate> delegate;
@property(nonatomic,strong) UITextField *textField;
/**
 *  自定义样式
 */
@property(nonatomic,strong) UIColor *cancelColor;//取消按钮颜色
@property(nonatomic,strong) UIColor *confirmColor;//确认按钮颜色
@property(nonatomic,copy) NSString *textFieldPlaceholder;//textField默认字
@property(nonatomic,strong) UIColor *titleColor;//标题颜色
@property(nonatomic,strong) UIColor *messageColor;//副标题颜色


-(void)showGGAlertView;
+ (instancetype)AlertWithTitle:(NSString *)title Text:(NSString *)text buttonTitles:(NSArray *)titles textFieldisHidden:(BOOL)textFieldisHidden delegate:(id<GGAlertViewDelegate>)delegate;

@end




@interface UIImage (colorful)
//a image using a color
+ (UIImage *)imageWithColor:(UIColor *)color;

@end